import request from '@/utils/request/index.js'
export default {
	/**获取动态列表
	 * @param {Object} userId
	 * @param {Object} current
	 * @param {Object} status
	 */
	getNewsByStatus(userId,current,status){
		return request.request({
			url : '/h5/nocnews/getAuthorNews?userId=' + userId + '&current=' + current + '&status=' + status,
			method: 'get',
			data :{},
		})
	},
	/**
	 * 上架动态
	 * @param newsId
	 * @returns {*}
	 */
	putawayNews(newsId){
		return request.request({
			url : '/h5/nocnews/putawaNews/' + newsId,
			method: 'get',
			data :{},
		})
	},
	/**
	 * 下架动态
	 * @param newsId
	 * @returns {*}
	 */
	soldOutNews(newsId){
		return request.request({
			url : '/h5/nocnews/soldOutNews/' + newsId,
			method: 'get',
			data :{},
		})
	},
	/**删除动态
	 * @param {Object} newsId
	 */
	deleteNews(newsId){
		return request.request({
			url : '/h5/nocnews/deleteNews?id=' + newsId,
			method: 'get',
			data :{},
		})
	},
	/**
	 * 下架动态
	 * @param {Object} id
	 */
	downNews(id){
		return request.request({
			url : '/h5/nocnews/downNews?id='+id,
			method: 'post',
			data :{},
		})
	},
	
	
}